﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<List<MensUnoShop.Models.OrderBatch>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	OrderListShip
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="main-content" class="hastable" style="width:600px">
		    <div class="title title-spacing">
			    <h2>已出貨單清單</h2>
					
		    </div>
            
            <%using (Html.BeginForm("OrderListShip", "OrderManagement", FormMethod.Post, new { @class = "shBox" }))
              {%>      
              起始時間<input type="text" id="Text1" name="sdate" class="datepicker" value="<%:ViewData["sdate"] %>"/>
              結束時間<input type="text" id="Text2" name="edate" class="datepicker" value="<%:ViewData["edate"] %>"/>
              <button type="submit" class="button">查詢</button>
            <%} %>

            <table>
        <thead>
        	<tr>               
                <td style="width:100px">批次編號</td>
                <td style="width:170px">批次時間</td>
                <td style="width:100px"></td>
                <td></td>
            </tr>            
        </thead>        
        
        <%if (Model != null)
            {%>           
        <tbody>
            <%foreach (var item in Model)
            {  %>
        	<tr>             
                <td><%:item.OBBATCHID %></td>
                <td><%:item.OBDATEIN.ToString("yyyy/MM/dd HH:mm:ss")%></td>
                <td><a href="OrderShipBatchDetail/<%:item.OBBATCHID %>">出貨單明細</a></td>
                <td><input type="button" onclick="location.href='GetExcel/<%:item.OBBATCHID %>'" value="匯出"/></td>    
            </tr>
            <%} %>
        </tbody>
        <%} %>
    </table>

            <br/><br/>　
        </div>

</asp:Content>
